package com.applet.enums;

public enum ResultEnums {

    SERVER_ERROR(-1,"系统内部错误"),

    RETURN_SUCCESS(200,"SUCCESS"),

    SMS_RETURN_SUCCESS(200,"短信发送成功"),

    REGISTER_RETURN_SUCCESS(200,"注册成功"),

    LOGINOUT_RETURN_SUCCESS(200,"退出登录成功"),

    NULL_LOCK_INFO(1001,"车号不存在"),

    ERROR_SMS_REPEAT(1002,"您已收到短信,请过5分钟再试"),

    ERROR_SMS_SEND(1003,"短信发送失败"),

    NULL_USER_INFO(2002,"用户不存在"),

    ERROR_USER_REGISTER(2003,"注册失败"),

    ERROR_USER_REGISTER_CODE(2004,"验证码错误"),

    ERROR_USER_REGISTER_REPEAT(2005,"用户已注册"),

    ERROR_USER_NULL_GET_CODE(2006,"请获取验证码"),

    ERROR_USER_NULL_REGISTER(2007,"用户未注册"),

    ERROR_USER_PASSWORD(2008,"密码不正确"),

    ERROR_USER_MODIFY_NICKNAME(2009,"修改昵称错误"),

    ERROR_USER_MODIFY_PHONE(2010,"修改手机号已存在");


    private Integer code;

    private String msg;

    ResultEnums(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }
    public void setMsg(String msg) {
        this.msg = msg;
    }
}


